package com.wutao.panzh.admin.mapper;

import com.panzh.entity.RouteItem;
import com.panzh.entity.index.IndexRouteItem;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface RouteItemMapper extends Mapper<RouteItem> {

    void insertByMe(RouteItem routeItem);

    Integer selectIdByRouteName(@Param("routeName") String routeName);

    List<RouteItem> selectFroSearch(@Param("keyword")String keyword);

    RouteItem selectRouteItemById(@Param("routeItemId")String routeItemId);

    void updateRouteItemById(RouteItem routeItem);

    List<RouteItem> selectRouteAllByItemName(@Param("routeName")String routeName);

    List<RouteItem> selectFroSearchByClassificationId(@Param("classificationId")Integer classificationId);
}